package org.scboy.coobi.db.mapping.oracle;

import org.scboy.coobi.db.mapping.DataTypeMapping;

/**
 * ORACLE 数据类型映射类
 * @author yanghao
 *
 */
public class OracleDataTypeMapping implements DataTypeMapping {

	@Override
	public String NCHAR() {
		return "NCHAR";
	}

	@Override
	public String NVARCHAR() {
		return "NVARCHAR2";
	}

	@Override
	public String TINYINT() {
		return "NUMBER";
	}

	@Override
	public String SMALLINT() {
		return "NUMBER";
	}

	@Override
	public String INT() {
		return "NUMBER";
	}

	@Override
	public String LONG() {
		return "NUMBER";
	}

	@Override
	public String VARBINARY() {
		return "RAW";
	}

	@Override
	public String BINARY() {
		return "RAW";
	}

	@Override
	public String CHAR() {
		return "CHAR";
	}

	@Override
	public String VARCHAR() {
		return "VARCHAR2";
	}

	@Override
	public String DECIMAL() {
		return "NUMBER";
	}

	@Override
	public String FLOAT() {
		return "NUMBER";
	}

	@Override
	public String DOUBLE() {
		return "NUMBER";
	}

	@Override
	public String BOOLEAN() {
		return "NUMBER";
	}

	@Override
	public String DATE() {
		return "DATE";
	}

	@Override
	public String TIME() {
		return "TIMESTAMP";
	}

	@Override
	public String DATETIME() {
		return "TIMESTAMP";
	}

	@Override
	public String BLOB() {
		return "BLOB";
	}

	@Override
	public String TEXT() {
		return "CLOB";
	}

	@Override
	public String NTEXT() {
		return "NCLOB";
	}

}
